100 |
Is is possible to toggle the selection of dates, such the first click selects the date, the second click unselects it, and so on
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->PutOnResizeControl(EXSCHEDULELib::OnResizeControlEnum(EXSCHEDULELib::exCalendarFit | EXSCHEDULELib::exHideSplitter | EXSCHEDULELib::exResizePanelRight)); EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar(); var_Calendar->PutAllowToggleSelectKey(EXSCHEDULELib::exLeftClick); var_Calendar->PutAllowSelectDate(EXSCHEDULELib::exLeftClick); var_Calendar->PutSingleSel(VARIANT_FALSE); |
99 |
How can I change the background color for selected dates in the calendar panel, so always is the same no matter if the control loses the focus
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->PutBackground(EXSCHEDULELib::exCalendarSelBackColorUnFocus,spSchedule1->GetBackground(EXSCHEDULELib::exCalendarSelBackColor)); spSchedule1->PutBackground(EXSCHEDULELib::exCalendarSelForeColorUnFocus,spSchedule1->GetBackground(EXSCHEDULELib::exCalendarSelForeColor)); |
98 |
Is it possible to specify a different background color for the calendar panel
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->PutBackground(EXSCHEDULELib::exCalendarBackColor,RGB(240,240,240)); |
97 |
How do I change the control's border, using your EBN files
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spSchedule1->PutAppearance(EXSCHEDULELib::AppearanceEnum(0x1000000)); |
96 |
Is it possible to prevent showing the calendar at all
|
95 |
How can I change the visual aspect only for a specified event
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,6,20,0,00,00).operator DATE()); EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents(); var_Events->Add(COleDateTime(2012,6,20,9,00,00).operator DATE(),COleDateTime(2012,6,20,11,00,00).operator DATE()); var_Events->Add(COleDateTime(2012,6,20,10,30,00).operator DATE(),COleDateTime(2012,6,20,13,00,00).operator DATE())->PutBodyBackColor(0x1000000); var_Events->Add(COleDateTime(2012,6,20,13,00,00).operator DATE(),COleDateTime(2012,6,20,15,00,00).operator DATE()); spSchedule1->PutDefaultEventPadding(EXSCHEDULELib::exPaddingAll,2); |
94 |
How can I change the visual aspect of the events
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spSchedule1->PutBackground(EXSCHEDULELib::exScheduleCreateEventBackColor,0x1000000); spSchedule1->PutBackground(EXSCHEDULELib::exScheduleUpdateEventsBackColor,0x1000000); spSchedule1->PutBodyEventBackColor(0x1000000); |
93 |
Is there any event to let me know once an edit has been edited
// LayoutEndChanging event - Notifies your application once the control's layout has been changed. void OnLayoutEndChangingSchedule1(long Operation) { /* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); OutputDebugStringW( L"End exScheduleEditEvent(15)" ); OutputDebugStringW( L"Operation" ); } // LayoutStartChanging event - Occurs when the control's layout is about to be changed. void OnLayoutStartChangingSchedule1(long Operation) { EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); OutputDebugStringW( L"Start exScheduleEditEvent(15)" ); OutputDebugStringW( L"Operation" ); } EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->PutAllowEditEvent(EXSCHEDULELib::exLeftClick); spSchedule1->PutAllowSelectEvent(EXSCHEDULELib::exDisallow); spSchedule1->PutDefaultEventLongLabel(L""); spSchedule1->PutDefaultEventShortLabel(spSchedule1->GetDefaultEventLongLabel()); spSchedule1->PutVisualDesign(_bstr_t("gBFLBWIgBAEHhEJAEGg7IAUHXI6g0MAAmhULikUCIgg6sh4AgRCJ0Ui8HjKTj6AADACAxRDAMgBQKAAzQFAYZhpBaERiHEZoJhUAIIRZGMQxXAcMQvDSKQRhEAoJDgN") + "4kQKNYyQYAAYhuGaPBhASQJUhkMocR7HMygBJkUABEyYaFHdIFCQ1DykJzkCbqAgkMYeDRHQxTdQsEgpDQMIRpGA5eb+XgAV4/cTSYKQahLMizJYGUYLHgma5tTTWcTV" + "PLVFRrJiTYRlKTJOjCCQ0ATdUyzPAeCRzQ6QJ5kUZ6CgSUpGRjkhY6agkF6VVxCNg2BT8KzxRoAKhiGpKHpaCaUQLWMB5PaoAR8fLYAA2B6bDhGaa2XAAFr2VZkWSUBB" + "pnSWo8kYIg1D6NBuGyIhYnCXx5kuHZcjUAAOAcDxbF2L5mmKPIOl2Ox7l2XJVGAfRMh8CABiyYpgi8E5pFSRp4DQHBkiKOQug4ChpmqPRoiAco6HePxJDUXQAASCYpHA" + "WpUHmGxmlwdphlwQJWncMQzFwXknCodJcEcXRiHYUIYCwAByhyaB1lAeReDgTgAHwU44GoHB3lUJgFi2BgYCYGYGgkFx2C2ax+lARI9FKA5YHiMR2guHBHlUPIChuBRJ" + "k4XIjiUKg8GsY5ohkZoQh2dJ6AYZxfFkHZoF2E5gkQOBPgMIJJHwS5WJmMRvhINwRHKAAdCieZyHEHgxEAaQYkcQZUHIGRUnQJIuAGEAxAgTYclGFBRAMCgQhgTZnEII" + "Q0AweIdCYZYGgaIZbDaTJbiKaJKDaDojmkChGhKI5bDoHoWD+aIqDiPImmmSh2h6J5qAqBoi3yeghjCIwpnIeoqiqapKjaLormsCouh+IwrBqVo2i2a4KlqHItY0Fo+i" + "+bALAaF4riuOmPjCLILCaSYxCmOpwh6MotAsRoWjMC5LDqUo1m0GxSlaNgtktlgxiuWx2mKL4tnMbpHjiboKB6ZY5m6G42muOBuluJpvjObwbkqLYxG4a5CnWOIvDubp" + "oiyKZrG6fo3HACxWg6OwwDsYoriUGwMCMCY0iqOgnBKQ4wnsQwUFgcR8FaSJGE+fBzBqMAxkqZwikichLlKFxAEAgIA=="); spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,6,20,0,00,00).operator DATE()); EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents(); var_Events->Add(COleDateTime(2012,6,20,9,00,00).operator DATE(),COleDateTime(2012,6,20,11,00,00).operator DATE())->PutEditable(EXSCHEDULELib::exEditLongLabel); var_Events->Add(COleDateTime(2012,6,20,10,30,00).operator DATE(),COleDateTime(2012,6,20,13,00,00).operator DATE())->PutEditable(EXSCHEDULELib::exEditLongLabel); var_Events->Add(COleDateTime(2012,6,20,13,00,00).operator DATE(),COleDateTime(2012,6,20,15,00,00).operator DATE())->PutEditable(EXSCHEDULELib::exEditLongLabel); spSchedule1->PutDefaultEventPadding(EXSCHEDULELib::exPaddingAll,2); |
92 |
I've noticed that the background of the event while editing is transparent. Is it possible to change it
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->PutAllowEditEvent(EXSCHEDULELib::exLeftClick); spSchedule1->PutAllowSelectEvent(EXSCHEDULELib::exDisallow); spSchedule1->PutDefaultEventLongLabel(L""); spSchedule1->PutDefaultEventShortLabel(spSchedule1->GetDefaultEventLongLabel()); spSchedule1->PutVisualDesign(_bstr_t("gBFLBWIgBAEHhEJAEGg41hhjNcHhgAE0KhcTiYREEHDMMgRCJ0Ti0ShEGhiAADACAxRDAMgBQKAAzQFAYbhsGCGAAGEZBQgmFgAQhFcZQSKUOQTDKMIziaQIRDINQlS") + "TJcQjKKEUQTFiXIyAKL5CgkBYJBrNM5SFIAEQSKA0TDOQ5To5jEBzIxIIjaJhoNoJChNU4TIDELphECdYqUCq6cp2XgAJhYNhWHYgAIjM60LRtIAELq2bpvXAACCXHal" + "azsAA+bxvK67cAAd5/YBgOBAAaGC4NQ7EAANHC8Mw3DgAGLkORZHigACzS7MMxzIACQx3HqfaAABK6HomS5NUTTNR0TLNAy3HqWZpsOYZBima4lRTHNxxTBMIz3Bp+YI" + "4DgC5FnOCx6jkXY5DcSxlkOGxujMWo6DaCwFhOKzgFeOw1lAAoXjuXpvngAAQBAgI"); spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,6,20,0,00,00).operator DATE()); EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents(); var_Events->Add(COleDateTime(2012,6,20,9,00,00).operator DATE(),COleDateTime(2012,6,20,11,00,00).operator DATE())->PutEditable(EXSCHEDULELib::exEditLongLabel); var_Events->Add(COleDateTime(2012,6,20,11,00,00).operator DATE(),COleDateTime(2012,6,20,13,00,00).operator DATE())->PutEditable(EXSCHEDULELib::exEditLongLabel); var_Events->Add(COleDateTime(2012,6,20,13,00,00).operator DATE(),COleDateTime(2012,6,20,15,00,00).operator DATE())->PutEditable(EXSCHEDULELib::exEditLongLabel); spSchedule1->PutBackground(EXSCHEDULELib::exScheduleEditEventBackColor,RGB(255,0,0)); |
91 |
How can I edit the Event.LongLabel property of the Event rather than ExtraLabel
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->PutAllowEditEvent(EXSCHEDULELib::exLeftClick); spSchedule1->PutAllowSelectEvent(EXSCHEDULELib::exDisallow); spSchedule1->PutDefaultEventLongLabel(L""); spSchedule1->PutDefaultEventShortLabel(spSchedule1->GetDefaultEventLongLabel()); spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,6,20,0,00,00).operator DATE()); EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents(); var_Events->Add(COleDateTime(2012,6,20,9,00,00).operator DATE(),COleDateTime(2012,6,20,11,00,00).operator DATE())->PutEditable(EXSCHEDULELib::exEditLongLabel); var_Events->Add(COleDateTime(2012,6,20,11,00,00).operator DATE(),COleDateTime(2012,6,20,13,00,00).operator DATE())->PutEditable(EXSCHEDULELib::exEditLongLabel); var_Events->Add(COleDateTime(2012,6,20,13,00,00).operator DATE(),COleDateTime(2012,6,20,15,00,00).operator DATE())->PutEditable(EXSCHEDULELib::exEditLongLabel); |
90 |
Is it possible to edit the event at a single click rather than double click
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->PutAllowEditEvent(EXSCHEDULELib::exLeftClick); spSchedule1->PutAllowSelectEvent(EXSCHEDULELib::exDisallow); spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,6,20,0,00,00).operator DATE()); EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents(); var_Events->Add(COleDateTime(2012,6,20,9,00,00).operator DATE(),COleDateTime(2012,6,20,11,00,00).operator DATE()); var_Events->Add(COleDateTime(2012,6,20,11,00,00).operator DATE(),COleDateTime(2012,6,20,13,00,00).operator DATE()); var_Events->Add(COleDateTime(2012,6,20,13,00,00).operator DATE(),COleDateTime(2012,6,20,15,00,00).operator DATE()); |
89 |
How can I prevent editing the events
|
88 |
How can I prevent selecting the events
|
87 |
The event gets blue when selected. It is possible to draw a frame instead
|
86 |
Is there an event that fires when the user selects a different day/week/month
// LayoutEndChanging event - Notifies your application once the control's layout has been changed. void OnLayoutEndChangingSchedule1(long Operation) { /* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); OutputDebugStringW( L"Operation" ); OutputDebugStringW( L"should be on exCalendarSelectionChange(1)" ); } // LayoutStartChanging event - Occurs when the control's layout is about to be changed. void OnLayoutStartChangingSchedule1(long Operation) { EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); OutputDebugStringW( L"Operation" ); OutputDebugStringW( L"should be on exCalendarSelectionChange(1)" ); } |
85 |
Can I use and display just the Caption of the Event
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->PutDefaultEventLongLabel(L"<%=%5%>"); spSchedule1->PutDefaultEventShortLabel(spSchedule1->GetDefaultEventLongLabel()); spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,6,20,0,00,00).operator DATE()); EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents(); var_Events->Add(COleDateTime(2012,6,20,9,00,00).operator DATE(),COleDateTime(2012,6,20,11,00,00).operator DATE())->PutCaption(L"caption 1"); var_Events->Add(COleDateTime(2012,6,20,11,00,00).operator DATE(),COleDateTime(2012,6,20,13,00,00).operator DATE())->PutCaption(L"caption 2"); var_Events->Add(COleDateTime(2012,6,20,13,00,00).operator DATE(),COleDateTime(2012,6,20,15,00,00).operator DATE())->PutCaption(L"caption 3"); |
84 |
How can I use the Caption property of the Event
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->PutDefaultEventLongLabel(L"<%=%256%><br><b><%=%5%>"); spSchedule1->PutDefaultEventShortLabel(spSchedule1->GetDefaultEventLongLabel()); spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,6,20,0,00,00).operator DATE()); EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents(); var_Events->Add(COleDateTime(2012,6,20,9,00,00).operator DATE(),COleDateTime(2012,6,20,11,00,00).operator DATE())->PutCaption(L"caption 1"); EXSCHEDULELib::IEventPtr var_Event = var_Events->Add(COleDateTime(2012,6,20,11,00,00).operator DATE(),COleDateTime(2012,6,20,13,00,00).operator DATE()); var_Event->PutLongLabel(L""); var_Event->PutExtraLabel(L"<%=%5%>"); var_Event->PutCaption(L"caption 2"); EXSCHEDULELib::IEventPtr var_Event1 = var_Events->Add(COleDateTime(2012,6,20,13,00,00).operator DATE(),COleDateTime(2012,6,20,15,00,00).operator DATE()); var_Event1->PutLongLabel(L"<%=%256%><br><b><%=%5%><br><fgcolor=808080>another text"); var_Event1->PutCaption(L"caption 3"); |
83 |
Is it possible to display a view of appointments with more than one person
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->BeginUpdate(); spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,6,20,0,00,00).operator DATE()); spSchedule1->PutDisplayGroupingButton(VARIANT_TRUE); spSchedule1->PutShowGroupingEvents(VARIANT_TRUE); EXSCHEDULELib::IGroupsPtr var_Groups = spSchedule1->GetGroups(); EXSCHEDULELib::IGroupPtr var_Group = var_Groups->Add(1,L"Mihai"); var_Group->PutEventBackColor(RGB(255,0,0)); var_Group->PutHeaderForeColor(var_Group->GetEventBackColor()); var_Group->PutVisible(VARIANT_TRUE); var_Group->PutTitle(var_Group->GetCaption()); EXSCHEDULELib::IGroupPtr var_Group1 = var_Groups->Add(2,L"Dave"); var_Group1->PutEventBackColor(RGB(0,255,0)); var_Group1->PutHeaderForeColor(var_Group1->GetEventBackColor()); var_Group1->PutVisible(VARIANT_TRUE); var_Group1->PutTitle(var_Group1->GetCaption()); EXSCHEDULELib::IGroupPtr var_Group2 = var_Groups->Add(3,L"Enrike"); var_Group2->PutEventBackColor(RGB(128,128,255)); var_Group2->PutHeaderForeColor(var_Group2->GetEventBackColor()); var_Group2->PutVisible(VARIANT_TRUE); var_Group2->PutTitle(var_Group2->GetCaption()); spSchedule1->PutDefaultEventLongLabel(L"<%=%256%><br><%=%263%>"); EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents(); var_Events->Add(COleDateTime(2012,6,20,10,00,00).operator DATE(),COleDateTime(2012,6,20,13,30,00).operator DATE())->PutGroupID(1); var_Events->Add(COleDateTime(2012,6,20,11,00,00).operator DATE(),COleDateTime(2012,6,20,13,30,00).operator DATE())->PutGroupID(2); var_Events->Add(COleDateTime(2012,6,20,13,30,00).operator DATE(),COleDateTime(2012,6,20,15,00,00).operator DATE())->PutGroupID(3); spSchedule1->EndUpdate(); |
82 |
How can I prevent selecting more dates in the schedule view
|
81 |
How can I get ride of the control's scroll bars
|
80 |
I am hiding the Calendar section of the control, the question is how can I select another date in the scheduler
|
79 |
How can I add an event to indicate the Easter Sunday
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar(); var_Calendar->PutShowNonMonthDays(VARIANT_FALSE); var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exSunday); var_Calendar->PutSelection("month(value) in (3,4)"); var_Calendar->GetHighlightEvent()->PutBackColor(RGB(128,128,128)); var_Calendar->PutShowYearScroll(VARIANT_TRUE); spSchedule1->PutBackground(EXSCHEDULELib::exCalendarSelBackColorUnFocus,spSchedule1->GetBackground(EXSCHEDULELib::exCalendarSelBackColor)); spSchedule1->PutBackground(EXSCHEDULELib::exScheduleBorderSelColorUnFocus,spSchedule1->GetBackground(EXSCHEDULELib::exCalendarSelBackColor)); EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents(); EXSCHEDULELib::IEventPtr var_Event = var_Events->Add(COleDateTime(2012,6,12,10,00,00).operator DATE(),COleDateTime(2012,6,12,14,00,00).operator DATE()); var_Event->PutAllDayEvent(VARIANT_TRUE); var_Event->PutRepetitive(_bstr_t("not(month(value) in (3,4,5)) ? 0 : ( floor(value)=(2:=floor(date(dateS('3/1/' + year(value)) + ((1:=(((255 - 11 * (year(value) ") + "mod 19)) - 21) mod 30) + 21) + (=:1 > 48 ? -1 : 0) + 6 - ((year(value) + int(year(value) / 4)) + =:1 + (=:1 > 48 ? -1 : 0) + 1) " + "mod 7)))))"); var_Event->PutLongLabel(L"EASTER of <%=year(%1)%> falls in<br><%=%1%>"); var_Event->PutShortLabel(var_Event->GetLongLabel()); |
78 |
I need a repetitive event happens every n-days, and stops after m-times. Can your control handle this
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->PutSelectEventStyle(EXSCHEDULELib::LinesStyleEnum(EXSCHEDULELib::exLinesThick | EXSCHEDULELib::exLinesSolid)); EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar(); var_Calendar->PutNonworkingDays(0); var_Calendar->PutShowNonMonthDays(VARIANT_FALSE); var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exSunday); var_Calendar->PutSelection(COleDateTime(2012,1,1,0,00,00).operator DATE()); var_Calendar->PutSelection("month(value) = 6"); var_Calendar->GetHighlightEvent()->PutFontSize(10); spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines); spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240)); EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents(); EXSCHEDULELib::IEventPtr var_Event = var_Events->Add(COleDateTime(2012,6,12,10,00,00).operator DATE(),COleDateTime(2012,6,12,14,00,00).operator DATE()); var_Event->PutRepetitive(L"(value >= (0:=#6/1/2012#)) and ( (value - =:0) mod (1:=5) = 0) and (value-=:0) < (3*=:1)"); var_Event->PutSelected(VARIANT_TRUE); |
77 |
How can I add a repetitive event to occur every n days
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->PutSelectEventStyle(EXSCHEDULELib::LinesStyleEnum(EXSCHEDULELib::exLinesThick | EXSCHEDULELib::exLinesSolid)); EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar(); var_Calendar->PutNonworkingDays(0); var_Calendar->PutShowNonMonthDays(VARIANT_FALSE); var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exSunday); var_Calendar->PutSelection("month(value) = 6"); var_Calendar->GetHighlightEvent()->PutFontSize(10); spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines); spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240)); EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents(); EXSCHEDULELib::IEventPtr var_Event = var_Events->Add(COleDateTime(2012,6,12,10,00,00).operator DATE(),COleDateTime(2012,6,12,14,00,00).operator DATE()); var_Event->PutRepetitive(L"value >= #6/1/2012# and ( (value - #6/1/2012#) mod 5 = 0)"); var_Event->PutSelected(VARIANT_TRUE); |
76 |
I am using the AutoHide option, just wondering if there is any event that notifies once the calendar panel shows or hides
// LayoutEndChanging event - Notifies your application once the control's layout has been changed. void OnLayoutEndChangingSchedule1(long Operation) { /* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); OutputDebugStringW( L"End exLayoutCalendarAutoHide(7)" ); OutputDebugStringW( L"Operation" ); } // LayoutStartChanging event - Occurs when the control's layout is about to be changed. void OnLayoutStartChangingSchedule1(long Operation) { EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); OutputDebugStringW( L"Start exLayoutCalendarAutoHide(7)" ); OutputDebugStringW( L"Operation" ); } EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->PutOnResizeControl(EXSCHEDULELib::exCalendarAutoHide); |
75 |
Is it possible to display the same event on multiple days
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->PutSelectEventStyle(EXSCHEDULELib::LinesStyleEnum(EXSCHEDULELib::exLinesThick | EXSCHEDULELib::exLinesSolid)); EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar(); var_Calendar->PutNonworkingDays(0); var_Calendar->PutShowNonMonthDays(VARIANT_FALSE); var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exSunday); var_Calendar->PutSelection(COleDateTime(2012,1,1,0,00,00).operator DATE()); var_Calendar->PutSelection("month(value) = 6"); var_Calendar->GetHighlightEvent()->PutFontSize(10); spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines); spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240)); EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents(); EXSCHEDULELib::IEventPtr var_Event = var_Events->Add(COleDateTime(2012,6,12,10,00,00).operator DATE(),COleDateTime(2012,6,12,14,00,00).operator DATE()); var_Event->PutRepetitive(L"value in (#6/8/2012#,#6/11/2012#,#6/20/2012#)"); var_Event->PutSelected(VARIANT_TRUE); |
74 |
How can I change the selection background color so it is the same if the control loses the focus
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar(); var_Calendar->PutNonworkingDays(0); var_Calendar->PutShowNonMonthDays(VARIANT_FALSE); var_Calendar->PutSelection(COleDateTime(2012,6,12,0,00,00).operator DATE()); var_Calendar->GetHighlightEvent()->PutFontSize(10); spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines); spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240)); spSchedule1->GetEvents()->Add(COleDateTime(2012,6,12,10,00,00).operator DATE(),COleDateTime(2012,6,12,14,00,00).operator DATE()); spSchedule1->PutBackground(EXSCHEDULELib::exCalendarSelBackColorUnFocus,spSchedule1->GetBackground(EXSCHEDULELib::exCalendarSelBackColor)); |
73 |
How can I add a repetitive event so it occurs every Monday
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar(); var_Calendar->PutNonworkingDays(0); var_Calendar->PutShowNonMonthDays(VARIANT_FALSE); var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exSunday); var_Calendar->PutSelection("month(value) = 6"); EXSCHEDULELib::IHighlightPtr var_Highlight = var_Calendar->GetHighlightEvent(); var_Highlight->PutFontSize(10); var_Highlight->PutBackColor(RGB(128,128,128)); spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines); spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240)); EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents(); var_Events->Add(COleDateTime(2012,6,12,10,00,00).operator DATE(),COleDateTime(2012,6,12,14,00,00).operator DATE())->PutRepetitive(L"weekday(value) = 1"); |
72 |
How can I select the current month
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar(); var_Calendar->PutNonworkingDays(0); var_Calendar->PutShowNonMonthDays(VARIANT_FALSE); var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exSunday); var_Calendar->PutSelection("month(value) = month(date(``))"); spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines); spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240)); |
71 |
How can I select the next two days
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar(); var_Calendar->PutNonworkingDays(0); var_Calendar->PutShowNonMonthDays(VARIANT_FALSE); var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exSunday); var_Calendar->PutSelection("(value - int(date(``))) in (1,2,0)"); spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines); spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240)); |
70 |
How can I select the last two days
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar(); var_Calendar->PutNonworkingDays(0); var_Calendar->PutShowNonMonthDays(VARIANT_FALSE); var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exSunday); var_Calendar->PutSelection("(int(date(``)) - value) in (1,2,0)"); spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines); spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240)); |
69 |
How can I select the current week
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar(); var_Calendar->PutNonworkingDays(0); var_Calendar->PutShowNonMonthDays(VARIANT_FALSE); var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exSunday); var_Calendar->PutSelection("(int((yearday(value) -1- ((7-weekday(value - yearday(value) + 1)) mod 7) )/7) = int((yearday(date(``))-1)/7))"); spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines); spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240)); |
68 |
Is it possible to highlight or change the background or foreground color for the today date in the schedule panel
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar(); var_Calendar->PutNonworkingDays(0); var_Calendar->PutShowNonMonthDays(VARIANT_FALSE); var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exSunday); var_Calendar->PutSelection(_bstr_t("month(value) = month(date(``)) and (int((yearday(value) -1- ((7-weekday(value - yearday(value) + 1)) mod 7) )/7) = int((yearday") + "(date(``))-1)/7))"); spSchedule1->PutBorderSelStyle(EXSCHEDULELib::exNoLines); spSchedule1->PutBackground(EXSCHEDULELib::exScheduleMarkTodayBackColor,RGB(240,240,240)); |
67 |
How can I display no working/non-working days in the control
|
66 |
The schedule displays a blue border around the selected dates. How can I get ride of that
|
65 |
The calendar panel shows days that belongs to another month. How can I display just the days within the current month
|
64 |
Is it possible to show the non-working days with a solid color instead
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar(); var_Calendar->PutSelection(COleDateTime(2012,6,14,0,00,00).operator DATE()); var_Calendar->PutSelection("value in (#6/14/2012#,#6/15/2012#,#6/16/2012#,#6/17/2012#)"); var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exMonday); var_Calendar->PutNonworkingDaysPattern(EXSCHEDULELib::exPatternSolid); var_Calendar->PutNonworkingDaysColor(RGB(224,224,224)); |
63 |
How can I display the now-working days in the schedule panel too
|
62 |
How can I make the control read-only
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->PutAllowCreateEvent(EXSCHEDULELib::exDisallow); spSchedule1->PutAllowMoveEvent(EXSCHEDULELib::exDisallow); spSchedule1->PutAllowResizeEvent(EXSCHEDULELib::exDisallow); spSchedule1->PutAllowMoveSchedule(EXSCHEDULELib::exLeftClick); spSchedule1->PutAllowSelectEvent(EXSCHEDULELib::exDisallow); spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE()); spSchedule1->GetCalendar()->PutSelection("value in (#05/24/2012#,#05/25/2012#,#05/26/2012#)"); spSchedule1->GetEvents()->Add(COleDateTime(2012,5,25,9,30,00).operator DATE(),COleDateTime(2012,5,25,13,00,00).operator DATE()); |
61 |
How can I check/uncheck a group, so it is visible after I add it
|
60 |
The drop down button to show groups is not visible, even I set the DisplayGroupingButton. What Can I do
|
59 |
It is possible to translate "All" to "Todos" or to something else
|
58 |
How can I remove the control's scroll bars
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->PutScrollBars(EXSCHEDULELib::exNoScroll); |
57 |
How can I select a month
|
56 |
How can I display two or more dates in the scheduler (Method 2)
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar(); var_Calendar->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE()); var_Calendar->PutSelection("value in ( #5/24/2012#, #5/25/2012# )"); |
55 |
How can I display two or more dates in the scheduler (Method 1)
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar(); var_Calendar->PutSelection("0"); var_Calendar->PutSelectDate(COleDateTime(2012,5,24,0,00,00).operator DATE(),VARIANT_TRUE); var_Calendar->PutSelectDate(COleDateTime(2012,5,25,0,00,00).operator DATE(),VARIANT_TRUE); |
54 |
How can I define a different color for nonworking part for different days
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->BeginUpdate(); EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar(); var_Calendar->PutSelection(COleDateTime(2012,5,21,0,00,00).operator DATE()); var_Calendar->PutSelection("(value >= #05/21/2012#) and (value <= #05/25/2012#)"); var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exMonday); EXSCHEDULELib::INonworkingPatternsPtr var_NonworkingPatterns = spSchedule1->GetNonworkingPatterns(); var_NonworkingPatterns->Add(1234,EXSCHEDULELib::exPatternBDiagonal)->GetPattern()->PutColor(RGB(255,0,0)); var_NonworkingPatterns->Add(1235,EXSCHEDULELib::exPatternBDiagonal)->GetPattern()->PutColor(RGB(0,255,0)); var_NonworkingPatterns->Add(1236,EXSCHEDULELib::exPatternBDiagonal)->GetPattern()->PutColor(RGB(0,0,255)); EXSCHEDULELib::INonworkingPatternPtr var_NonworkingPattern = var_NonworkingPatterns->Add(1237,EXSCHEDULELib::PatternEnum(EXSCHEDULELib::exPatternFrameThick | EXSCHEDULELib::exPatternCross)); var_NonworkingPattern->GetPattern()->PutColor(RGB(128,128,128)); var_NonworkingPattern->GetPattern()->PutFrameColor(RGB(64,64,64)); var_NonworkingPattern->PutBackColor(RGB(255,255,0)); EXSCHEDULELib::INonworkingTimesPtr var_NonworkingTimes = spSchedule1->GetNonworkingTimes(); var_NonworkingTimes->Add(L"weekday(value) in (0,1)",L"10:00",L"11:45",1234); var_NonworkingTimes->Add(L"weekday(value) = 2",L"00:00",L"08:45",1235); var_NonworkingTimes->Add(L"weekday(value) = 2",L"15:00",L"24:00",1235); var_NonworkingTimes->Add(L"weekday(value) in (3,5)",L"12:15",L"13:00",1236); var_NonworkingTimes->Add(L"weekday(value) = 4",L"13:30",L"15:00",1237); spSchedule1->PutShowNonworkingTime(EXSCHEDULELib::exShowNonworkingTimeSemi); spSchedule1->EndUpdate(); |
53 |
Is it possible to show both nonworking and the events, using semi-transparent color
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar(); var_Calendar->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE()); var_Calendar->PutSelection("value in (#05/24/2012#,#05/25/2012#,#05/26/2012#)"); EXSCHEDULELib::INonworkingPatternsPtr var_NonworkingPatterns = spSchedule1->GetNonworkingPatterns(); var_NonworkingPatterns->Add(1234,EXSCHEDULELib::exPatternBrick); EXSCHEDULELib::INonworkingPatternPtr var_NonworkingPattern = var_NonworkingPatterns->Add(9871,EXSCHEDULELib::PatternEnum(EXSCHEDULELib::exPatternFrameThick | EXSCHEDULELib::exPatternYard)); var_NonworkingPattern->PutBackColor(RGB(255,0,0)); EXSCHEDULELib::INonworkingPatternPtr var_NonworkingPattern1 = var_NonworkingPatterns->Add(9872,EXSCHEDULELib::PatternEnum(EXSCHEDULELib::exPatternFrameThick | EXSCHEDULELib::exPatternYard)); var_NonworkingPattern1->PutBackColor(RGB(255,255,0)); EXSCHEDULELib::INonworkingTimesPtr var_NonworkingTimes = spSchedule1->GetNonworkingTimes(); var_NonworkingTimes->Add(L"1",L"00:00",L"08:45",1234); var_NonworkingTimes->Add(L"weekday(value) = 5",L"10:00",L"11:45",9871); var_NonworkingTimes->Add(L"weekday(value) = 4",L"12:00",L"12:35",9872); spSchedule1->GetEvents()->Add(COleDateTime(2012,5,25,9,30,00).operator DATE(),COleDateTime(2012,5,25,13,00,00).operator DATE()); spSchedule1->PutShowNonworkingTime(EXSCHEDULELib::exShowNonworkingTimeSemi); |
52 |
Is it possible to show the nonworking part behind, on the back
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar(); var_Calendar->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE()); var_Calendar->PutSelection("value in (#05/24/2012#,#05/25/2012#,#05/26/2012#)"); EXSCHEDULELib::INonworkingPatternsPtr var_NonworkingPatterns = spSchedule1->GetNonworkingPatterns(); var_NonworkingPatterns->Add(1234,EXSCHEDULELib::exPatternBrick); EXSCHEDULELib::INonworkingPatternPtr var_NonworkingPattern = var_NonworkingPatterns->Add(9871,EXSCHEDULELib::PatternEnum(EXSCHEDULELib::exPatternFrameThick | EXSCHEDULELib::exPatternYard)); var_NonworkingPattern->PutBackColor(RGB(255,0,0)); EXSCHEDULELib::INonworkingPatternPtr var_NonworkingPattern1 = var_NonworkingPatterns->Add(9872,EXSCHEDULELib::PatternEnum(EXSCHEDULELib::exPatternFrameThick | EXSCHEDULELib::exPatternYard)); var_NonworkingPattern1->PutBackColor(RGB(255,255,0)); EXSCHEDULELib::INonworkingTimesPtr var_NonworkingTimes = spSchedule1->GetNonworkingTimes(); var_NonworkingTimes->Add(L"1",L"00:00",L"08:45",1234); var_NonworkingTimes->Add(L"weekday(value) = 5",L"10:00",L"11:45",9871); var_NonworkingTimes->Add(L"weekday(value) = 4",L"12:00",L"12:35",9872); spSchedule1->GetEvents()->Add(COleDateTime(2012,5,25,9,30,00).operator DATE(),COleDateTime(2012,5,25,13,00,00).operator DATE()); spSchedule1->PutShowNonworkingTime(EXSCHEDULELib::exShowNonworkingTimeBack); |
51 |
Can you explain how the non working day patterns work and how to define
for different days of the week
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar(); var_Calendar->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE()); var_Calendar->PutSelection("value in (#05/24/2012#,#05/25/2012#,#05/26/2012#)"); EXSCHEDULELib::INonworkingPatternsPtr var_NonworkingPatterns = spSchedule1->GetNonworkingPatterns(); var_NonworkingPatterns->Add(1234,EXSCHEDULELib::exPatternBrick); EXSCHEDULELib::INonworkingPatternPtr var_NonworkingPattern = var_NonworkingPatterns->Add(9871,EXSCHEDULELib::PatternEnum(EXSCHEDULELib::exPatternFrameThick | EXSCHEDULELib::exPatternYard)); var_NonworkingPattern->PutBackColor(RGB(255,0,0)); EXSCHEDULELib::INonworkingPatternPtr var_NonworkingPattern1 = var_NonworkingPatterns->Add(9872,EXSCHEDULELib::PatternEnum(EXSCHEDULELib::exPatternFrameThick | EXSCHEDULELib::exPatternYard)); var_NonworkingPattern1->PutBackColor(RGB(255,255,0)); EXSCHEDULELib::INonworkingTimesPtr var_NonworkingTimes = spSchedule1->GetNonworkingTimes(); var_NonworkingTimes->Add(L"1",L"00:00",L"08:45",1234); var_NonworkingTimes->Add(L"weekday(value) = 5",L"10:00",L"11:45",9871); var_NonworkingTimes->Add(L"weekday(value) = 4",L"12:00",L"12:35",9872); |
50 |
How can I add a nonworking time
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); EXSCHEDULELib::INonworkingTimesPtr var_NonworkingTimes = spSchedule1->GetNonworkingTimes(); var_NonworkingTimes->Add(L"1",L"00:00",L"08:45",-1); var_NonworkingTimes->Add(L"weekday(value) = weekday(date(``))",L"10:00",L"11:15",-1); |
49 |
How can I get the event from the cursor
// MouseMove event - Occurs when the user moves the mouse. void OnMouseMoveSchedule1(short Button,short Shift,long X,long Y) { /* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); OutputDebugStringW( L"Calendar.DateFromPoint" ); OutputDebugStringW( _bstr_t(spSchedule1->GetCalendar()->GetDateFromPoint(-1,-1)) ); OutputDebugStringW( L"AnchorFromPoint" ); OutputDebugStringW( spSchedule1->GetAnchorFromPoint(-1,-1) ); OutputDebugStringW( L"DateTimeFromPoint" ); OutputDebugStringW( _bstr_t(spSchedule1->GetDateTimeFromPoint(-1,-1)) ); OutputDebugStringW( L"TimeFromPoint" ); OutputDebugStringW( _bstr_t(spSchedule1->GetTimeFromPoint(-1,-1)) ); OutputDebugStringW( L"TimeScaleFromPoint" ); OutputDebugStringW( _bstr_t(spSchedule1->GetTimeScaleFromPoint(-1,-1)) ); OutputDebugStringW( L"GroupFromPoint" ); OutputDebugStringW( _bstr_t(spSchedule1->GetGroupFromPoint(-1,-1)) ); OutputDebugStringW( L"GroupHeaderFromPoint" ); OutputDebugStringW( _bstr_t(spSchedule1->GetGroupHeaderFromPoint(-1,-1)) ); OutputDebugStringW( L"MarkZoneFromPoint" ); OutputDebugStringW( _bstr_t(spSchedule1->GetMarkZoneFromPoint(-1,-1)) ); OutputDebugStringW( L"NonworkingTimeFromPoint" ); OutputDebugStringW( _bstr_t(spSchedule1->GetNonworkingTimeFromPoint(-1,-1)) ); OutputDebugStringW( L"MarkTimeFromPoint" ); OutputDebugStringW( _bstr_t(spSchedule1->GetMarkTimeFromPoint(-1,-1)) ); OutputDebugStringW( L"EventFromPoint" ); OutputDebugStringW( _bstr_t(spSchedule1->GetEventFromPoint(-1,-1)) ); OutputDebugStringW( L"PictureFromPoint" ); OutputDebugStringW( spSchedule1->GetPictureFromPoint(-1,-1) ); } EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->BeginUpdate(); spSchedule1->PutAllowMultiDaysEvent(VARIANT_FALSE); spSchedule1->PutAllowCreateEvent(EXSCHEDULELib::AllowKeysEnum(EXSCHEDULELib::exCTRLKey | EXSCHEDULELib::exLeftClick)); spSchedule1->PutAllowMoveEvent(EXSCHEDULELib::AllowKeysEnum(EXSCHEDULELib::exCTRLKey | EXSCHEDULELib::exLeftClick)); spSchedule1->PutAllowMoveTimeScale(EXSCHEDULELib::exLeftClick); spSchedule1->PutAllowMoveSchedule(EXSCHEDULELib::exLeftClick); spSchedule1->PutAllowSelectEvent(EXSCHEDULELib::AllowKeysEnum(EXSCHEDULELib::exCTRLKey | EXSCHEDULELib::exLeftClick)); spSchedule1->PutAllowResizeEvent(EXSCHEDULELib::exLeftClick); spSchedule1->GetCalendar()->PutMaxMonthY(6); spSchedule1->PutSelectEventStyle(EXSCHEDULELib::LinesStyleEnum(EXSCHEDULELib::exLinesThicker | EXSCHEDULELib::exLinesSolid)); spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE()); EXSCHEDULELib::IMarkTimePtr var_MarkTime = spSchedule1->GetMarkTimes()->Add(L"timer",COleDateTime(2012,5,24,11,35,00).operator DATE()); var_MarkTime->PutTimeScaleLabel(L""); var_MarkTime->PutLabel(L"<fgcolor=FF0000>Time: <b><%hh%>:<%nn%> <%AM/PM%></b><br>Date: <b><%loc_sdate%>"); var_MarkTime->PutLabelAlign(EXSCHEDULELib::exBottomRight); var_MarkTime->PutLine(EXSCHEDULELib::LinesStyleEnum(EXSCHEDULELib::exLinesThicker | EXSCHEDULELib::exLinesDash)); var_MarkTime->PutBodyEventBackColor(RGB(128,0,0)); var_MarkTime->PutBodyEventForeColor(RGB(255,255,255)); var_MarkTime->PutMovable(VARIANT_TRUE); EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents(); var_Events->Add(COleDateTime(2012,5,24,9,00,00).operator DATE(),COleDateTime(2012,5,24,12,00,00).operator DATE()); var_Events->Add(COleDateTime(2012,5,24,10,45,00).operator DATE(),COleDateTime(2012,5,24,12,45,00).operator DATE()); var_Events->Add(COleDateTime(2012,5,24,11,30,00).operator DATE(),COleDateTime(2012,5,24,14,30,00).operator DATE()); var_Events->Add(COleDateTime(2012,5,24,12,45,00).operator DATE(),COleDateTime(2012,5,24,15,45,00).operator DATE()); spSchedule1->EndUpdate(); |
48 |
How can I show the timer only in the chart section
|
47 |
How can I let the user to move the timer from the cursor
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->BeginUpdate(); spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE()); EXSCHEDULELib::IMarkTimePtr var_MarkTime = spSchedule1->GetMarkTimes()->Add(L"timer",COleDateTime(2012,5,24,11,35,00).operator DATE()); var_MarkTime->PutTimeScaleLabel(L""); var_MarkTime->PutLabel(L"<fgcolor=FF0000>Time: <b><%hh%>:<%nn%> <%AM/PM%></b><br>Date: <b><%loc_sdate%>"); var_MarkTime->PutLabelAlign(EXSCHEDULELib::exBottomRight); var_MarkTime->PutLine(EXSCHEDULELib::LinesStyleEnum(EXSCHEDULELib::exLinesThicker | EXSCHEDULELib::exLinesDash)); var_MarkTime->PutBodyEventBackColor(RGB(128,0,0)); var_MarkTime->PutBodyEventForeColor(RGB(255,255,255)); var_MarkTime->PutMovable(VARIANT_TRUE); EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents(); var_Events->Add(COleDateTime(2012,5,24,9,00,00).operator DATE(),COleDateTime(2012,5,24,12,00,00).operator DATE()); var_Events->Add(COleDateTime(2012,5,24,10,45,00).operator DATE(),COleDateTime(2012,5,24,12,45,00).operator DATE()); var_Events->Add(COleDateTime(2012,5,24,11,30,00).operator DATE(),COleDateTime(2012,5,24,14,30,00).operator DATE()); var_Events->Add(COleDateTime(2012,5,24,12,45,00).operator DATE(),COleDateTime(2012,5,24,15,45,00).operator DATE()); spSchedule1->EndUpdate(); |
46 |
How can I show the timer only in the time scale
|
45 |
I have seen some screen shots and noticed, that you can place images on a timer. How can I do that
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->BeginUpdate(); spSchedule1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); spSchedule1->PutHTMLPicture(L"pic1","c:\\exontrol\\images\\zipdisk.gif"); spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE()); spSchedule1->PutStatusEventSize(8); spSchedule1->PutStatusEventColor(RGB(255,255,255)); EXSCHEDULELib::IMarkTimePtr var_MarkTime = spSchedule1->GetMarkTimes()->Add(L"timer",COleDateTime(2012,5,24,11,35,00).operator DATE()); var_MarkTime->PutLabel(L"<img>pic1</img>"); var_MarkTime->PutTimeScaleLabel(L"<fgcolor=FF0000><b><%hh%>:<%nn%> <%AM/PM%><br><c><img>1</img>"); var_MarkTime->PutLabelAlign(EXSCHEDULELib::exMiddleRight); var_MarkTime->PutLine(EXSCHEDULELib::LinesStyleEnum(EXSCHEDULELib::exLinesThicker | EXSCHEDULELib::exLinesDash)); var_MarkTime->PutMovable(VARIANT_TRUE); var_MarkTime->GetStatusEventPattern()->PutType(EXSCHEDULELib::exPatternShadow); var_MarkTime->GetStatusEventPattern()->PutColor(RGB(255,0,0)); EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents(); var_Events->Add(COleDateTime(2012,5,24,9,00,00).operator DATE(),COleDateTime(2012,5,24,12,00,00).operator DATE()); var_Events->Add(COleDateTime(2012,5,24,10,45,00).operator DATE(),COleDateTime(2012,5,24,12,45,00).operator DATE()); var_Events->Add(COleDateTime(2012,5,24,11,30,00).operator DATE(),COleDateTime(2012,5,24,14,30,00).operator DATE()); var_Events->Add(COleDateTime(2012,5,24,12,45,00).operator DATE(),COleDateTime(2012,5,24,15,45,00).operator DATE()); spSchedule1->EndUpdate(); |
44 |
How can I change the timer's color
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->BeginUpdate(); spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE()); EXSCHEDULELib::IMarkTimesPtr var_MarkTimes = spSchedule1->GetMarkTimes(); EXSCHEDULELib::IMarkTimePtr var_MarkTime = var_MarkTimes->Add(L"timer",COleDateTime(2012,5,24,11,35,00).operator DATE()); var_MarkTime->PutMovable(VARIANT_TRUE); var_MarkTime->PutLineColor(RGB(0,0,255)); var_MarkTime->PutStatusEventBackColor(RGB(0,0,255)); var_MarkTime->PutTimeScaleLineColor(RGB(0,0,255)); var_MarkTime->PutTimeScaleLabel(L"<fgcolor=0000FF><b><%hh%>:<%nn%> <%AM/PM%>"); spSchedule1->EndUpdate(); |
43 |
Can I add multiple timers with different colors
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->BeginUpdate(); spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE()); EXSCHEDULELib::IMarkTimesPtr var_MarkTimes = spSchedule1->GetMarkTimes(); EXSCHEDULELib::IMarkTimePtr var_MarkTime = var_MarkTimes->Add(L"timer1",COleDateTime(2012,5,24,9,35,00).operator DATE()); var_MarkTime->PutMovable(VARIANT_TRUE); var_MarkTime->PutStatusEventBackColor(RGB(255,0,0)); EXSCHEDULELib::IMarkTimePtr var_MarkTime1 = var_MarkTimes->Add(L"timer2",COleDateTime(2012,5,24,13,35,00).operator DATE()); var_MarkTime1->PutMovable(VARIANT_TRUE); var_MarkTime1->PutLineColor(RGB(0,255,0)); var_MarkTime1->PutStatusEventBackColor(var_MarkTime1->GetLineColor()); var_MarkTime1->PutTimeScaleLineColor(var_MarkTime1->GetLineColor()); var_MarkTime1->PutTimeScaleLabel(L"<fgcolor=00FF00><b><%hh%>:<%nn%> <%AM/PM%>"); EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents(); var_Events->Add(COleDateTime(2012,5,24,9,00,00).operator DATE(),COleDateTime(2012,5,24,12,00,00).operator DATE()); var_Events->Add(COleDateTime(2012,5,24,10,45,00).operator DATE(),COleDateTime(2012,5,24,12,45,00).operator DATE()); var_Events->Add(COleDateTime(2012,5,24,11,30,00).operator DATE(),COleDateTime(2012,5,24,14,30,00).operator DATE()); var_Events->Add(COleDateTime(2012,5,24,12,45,00).operator DATE(),COleDateTime(2012,5,24,15,45,00).operator DATE()); spSchedule1->EndUpdate(); |
42 |
How can I specify a different color for the status of the event that intersects with the timer
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->BeginUpdate(); spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE()); EXSCHEDULELib::IMarkTimePtr var_MarkTime = spSchedule1->GetMarkTimes()->Add(L"timer",COleDateTime(2012,5,24,11,35,00).operator DATE()); var_MarkTime->PutTimeScaleLabelAlign(EXSCHEDULELib::exTopCenter); var_MarkTime->PutLine(EXSCHEDULELib::LinesStyleEnum(EXSCHEDULELib::exLinesThick | EXSCHEDULELib::exLinesHDot4)); var_MarkTime->PutTimeScaleLine(EXSCHEDULELib::exLinesHDot4); var_MarkTime->PutStatusEventBackColor(RGB(255,0,0)); var_MarkTime->PutMovable(VARIANT_TRUE); EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents(); var_Events->Add(COleDateTime(2012,5,24,9,00,00).operator DATE(),COleDateTime(2012,5,24,12,00,00).operator DATE()); var_Events->Add(COleDateTime(2012,5,24,10,45,00).operator DATE(),COleDateTime(2012,5,24,12,45,00).operator DATE()); var_Events->Add(COleDateTime(2012,5,24,11,30,00).operator DATE(),COleDateTime(2012,5,24,14,30,00).operator DATE()); var_Events->Add(COleDateTime(2012,5,24,12,45,00).operator DATE(),COleDateTime(2012,5,24,15,45,00).operator DATE()); spSchedule1->EndUpdate(); |
41 |
How can the chart displays the events from the timer with a different color
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->BeginUpdate(); spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE()); EXSCHEDULELib::IMarkTimePtr var_MarkTime = spSchedule1->GetMarkTimes()->Add(L"timer",COleDateTime(2012,5,24,11,35,00).operator DATE()); var_MarkTime->PutTimeScaleLabel(L""); var_MarkTime->PutLabel(L"<fgcolor=FF0000>Time: <b><%hh%>:<%nn%> <%AM/PM%></b><br>Date: <b><%loc_sdate%>"); var_MarkTime->PutLabelAlign(EXSCHEDULELib::exBottomRight); var_MarkTime->PutLine(EXSCHEDULELib::LinesStyleEnum(EXSCHEDULELib::exLinesThicker | EXSCHEDULELib::exLinesDash)); var_MarkTime->PutBodyEventBackColor(RGB(128,0,0)); var_MarkTime->PutBodyEventForeColor(RGB(255,255,255)); var_MarkTime->PutMovable(VARIANT_TRUE); EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents(); var_Events->Add(COleDateTime(2012,5,24,9,00,00).operator DATE(),COleDateTime(2012,5,24,12,00,00).operator DATE()); var_Events->Add(COleDateTime(2012,5,24,10,45,00).operator DATE(),COleDateTime(2012,5,24,12,45,00).operator DATE()); var_Events->Add(COleDateTime(2012,5,24,11,30,00).operator DATE(),COleDateTime(2012,5,24,14,30,00).operator DATE()); var_Events->Add(COleDateTime(2012,5,24,12,45,00).operator DATE(),COleDateTime(2012,5,24,15,45,00).operator DATE()); spSchedule1->EndUpdate(); |
40 |
Is it possible to display the timer's label on the chart, instead time scales
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->BeginUpdate(); spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE()); EXSCHEDULELib::IMarkTimePtr var_MarkTime = spSchedule1->GetMarkTimes()->Add(L"timer",COleDateTime(2012,5,24,11,35,00).operator DATE()); var_MarkTime->PutTimeScaleLabel(L""); var_MarkTime->PutLabel(L"<fgcolor=FF0000>Time: <b><%hh%>:<%nn%> <%AM/PM%></b><br>Date: <b><%loc_sdate%>"); var_MarkTime->PutLabelAlign(EXSCHEDULELib::exBottomRight); var_MarkTime->PutLine(EXSCHEDULELib::LinesStyleEnum(EXSCHEDULELib::exLinesThicker | EXSCHEDULELib::exLinesDash)); EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents(); var_Events->Add(COleDateTime(2012,5,24,9,00,00).operator DATE(),COleDateTime(2012,5,24,12,00,00).operator DATE()); var_Events->Add(COleDateTime(2012,5,24,10,45,00).operator DATE(),COleDateTime(2012,5,24,12,45,00).operator DATE()); var_Events->Add(COleDateTime(2012,5,24,11,30,00).operator DATE(),COleDateTime(2012,5,24,14,30,00).operator DATE()); var_Events->Add(COleDateTime(2012,5,24,12,45,00).operator DATE(),COleDateTime(2012,5,24,15,45,00).operator DATE()); spSchedule1->EndUpdate(); |
39 |
How can I add a timer to the scheduler
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->BeginUpdate(); spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE()); spSchedule1->GetMarkTimes()->Add(L"timer",COleDateTime(2012,5,24,11,35,00).operator DATE()); EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents(); var_Events->Add(COleDateTime(2012,5,24,9,00,00).operator DATE(),COleDateTime(2012,5,24,12,00,00).operator DATE()); var_Events->Add(COleDateTime(2012,5,24,10,45,00).operator DATE(),COleDateTime(2012,5,24,12,45,00).operator DATE()); var_Events->Add(COleDateTime(2012,5,24,11,30,00).operator DATE(),COleDateTime(2012,5,24,14,30,00).operator DATE()); var_Events->Add(COleDateTime(2012,5,24,12,45,00).operator DATE(),COleDateTime(2012,5,24,15,45,00).operator DATE()); spSchedule1->EndUpdate(); |
38 |
Is it possible to define the small increment to 5 minutes
|
37 |
How can I change the time format to 24 hours to be displayed in the control's time scale
|
36 |
How can I change the time zone
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->PutDayEndTime(L"13:00"); EXSCHEDULELib::ITimeScalePtr var_TimeScale = spSchedule1->GetTimeScales()->GetItem(long(0)); var_TimeScale->PutTimeZone(L"+03:00"); var_TimeScale->PutCaption(var_TimeScale->GetTimeZone()); |
35 |
Is it possible to add more time scales
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->PutDayEndTime(L"13:00"); EXSCHEDULELib::ITimeScalePtr var_TimeScale = spSchedule1->GetTimeScales()->Add(L"+03:00"); var_TimeScale->PutAlignLeft(VARIANT_FALSE); var_TimeScale->PutCaption(L"EST <b>+03"); |
34 |
How can I get any event to be notified if a picture or icon is clicked (Method 2)
// PictureClick event - Occurs when the user clicks a picture within an event ( Event.Pictures/ExtraPictures ). void OnPictureClickSchedule1(LPCTSTR Key) { /* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); OutputDebugStringW( L"Key" ); } EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->BeginUpdate(); spSchedule1->PutShowSelectEvent(VARIANT_FALSE); spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE()); spSchedule1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); EXSCHEDULELib::IExPicturesPtr var_ExPictures = spSchedule1->GetPictures(); var_ExPictures->Add(L"pic1","c:\\exontrol\\images\\card.png"); var_ExPictures->Add(L"pic2","c:\\exontrol\\images\\diary.png"); EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents(); var_Events->Add(COleDateTime(2012,5,24,10,00,00).operator DATE(),COleDateTime(2012,5,24,12,00,00).operator DATE())->PutPictures(L"pic1/pic2"); var_Events->Add(COleDateTime(2012,5,24,10,45,00).operator DATE(),COleDateTime(2012,5,24,12,45,00).operator DATE())->PutPictures(L"1,2/3"); var_Events->Add(COleDateTime(2012,5,24,13,00,00).operator DATE(),COleDateTime(2012,5,24,15,45,00).operator DATE())->PutExtraPictures(L"pic2/1"); spSchedule1->EndUpdate(); |
33 |
How can I display a tooltip for an anchor element, for instance
|
32 |
Is it possible to prevent selecting events
|
31 |
How can I get any event to be notified if a picture or icon is clicked (Method 1)
// AnchorClick event - Occurs when an anchor element is clicked. void OnAnchorClickSchedule1(LPCTSTR AnchorID,LPCTSTR Options) { /* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); OutputDebugStringW( L"AnchorID" ); } EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->BeginUpdate(); spSchedule1->PutShowSelectEvent(VARIANT_FALSE); spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE()); spSchedule1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); EXSCHEDULELib::IExPicturesPtr var_ExPictures = spSchedule1->GetPictures(); var_ExPictures->Add(L"pic1","c:\\exontrol\\images\\card.png"); var_ExPictures->Add(L"pic2","c:\\exontrol\\images\\diary.png"); EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents(); var_Events->Add(COleDateTime(2012,5,24,10,00,00).operator DATE(),COleDateTime(2012,5,24,12,00,00).operator DATE())->PutExtraLabel(L"<a pic1><img>pic1:32</img></a>"); var_Events->Add(COleDateTime(2012,5,24,10,45,00).operator DATE(),COleDateTime(2012,5,24,12,45,00).operator DATE())->PutExtraLabel(L"<a pic2><img>pic2:48</img></a>"); var_Events->Add(COleDateTime(2012,5,24,13,45,00).operator DATE(),COleDateTime(2012,5,24,15,45,00).operator DATE())->PutLongLabel(L"Start: <%=%1%><br>End: <%=%2%><br><br>Icon: <a 1><img>1</img></a> - <a 2><img>2</img></a>"); spSchedule1->EndUpdate(); |
30 |
How can I display a picture or an icon to an event
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->BeginUpdate(); spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE()); spSchedule1->Images(_bstr_t("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") + "lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" + "0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" + "NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="); EXSCHEDULELib::IExPicturesPtr var_ExPictures = spSchedule1->GetPictures(); var_ExPictures->Add(L"pic1","c:\\exontrol\\images\\card.png"); var_ExPictures->Add(L"pic2","c:\\exontrol\\images\\diary.png"); EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents(); var_Events->Add(COleDateTime(2012,5,24,10,00,00).operator DATE(),COleDateTime(2012,5,24,12,00,00).operator DATE())->PutExtraLabel(L"<img>pic1:32</img>"); var_Events->Add(COleDateTime(2012,5,24,10,45,00).operator DATE(),COleDateTime(2012,5,24,12,45,00).operator DATE())->PutExtraLabel(L"<img>pic2:48</img>"); var_Events->Add(COleDateTime(2012,5,24,11,30,00).operator DATE(),COleDateTime(2012,5,24,14,30,00).operator DATE())->PutPictures(L"1/2,3/pic1"); EXSCHEDULELib::IEventPtr var_Event = var_Events->Add(COleDateTime(2012,5,24,12,45,00).operator DATE(),COleDateTime(2012,5,24,15,45,00).operator DATE()); var_Event->PutExtraPictures(L"1/2"); var_Event->PutPictures(L"1,pic1,2,pic2/3"); spSchedule1->EndUpdate(); |
29 |
Is it possible to display the group's caption or ID on the event's label
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->BeginUpdate(); spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE()); EXSCHEDULELib::IGroupsPtr var_Groups = spSchedule1->GetGroups(); EXSCHEDULELib::IGroupPtr var_Group = var_Groups->Add(1,L"Group 1"); var_Group->PutVisible(VARIANT_TRUE); var_Group->PutEventBackColor(RGB(128,128,128)); var_Group->PutTitle(L"1'st Group"); EXSCHEDULELib::IGroupPtr var_Group1 = var_Groups->Add(2,L"Group 2"); var_Group1->PutVisible(VARIANT_TRUE); var_Group1->PutEventBackColor(RGB(255,0,0)); var_Group1->PutTitle(L"2'nd Group"); spSchedule1->PutDefaultEventLongLabel(L"<%=%256%><br>Group's Caption: <b><%=%262%></b><br>Group's Title: <b><%=%263%></b>"); spSchedule1->PutDefaultEventShortLabel(spSchedule1->GetDefaultEventLongLabel()); EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents(); var_Events->Add(COleDateTime(2012,5,24,10,00,00).operator DATE(),COleDateTime(2012,5,24,12,00,00).operator DATE())->PutGroupID(1); var_Events->Add(COleDateTime(2012,5,24,10,45,00).operator DATE(),COleDateTime(2012,5,24,12,30,00).operator DATE())->PutGroupID(2); var_Events->Add(COleDateTime(2012,5,24,12,30,00).operator DATE(),COleDateTime(2012,5,24,14,30,00).operator DATE())->PutGroupID(1); spSchedule1->EndUpdate(); |
28 |
How can I show the events from different groups using the same color
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->BeginUpdate(); spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE()); spSchedule1->PutDisplayGroupingButton(VARIANT_TRUE); spSchedule1->PutShowGroupingEvents(VARIANT_TRUE); spSchedule1->PutApplyGroupingColors(VARIANT_FALSE); EXSCHEDULELib::IGroupsPtr var_Groups = spSchedule1->GetGroups(); EXSCHEDULELib::IGroupPtr var_Group = var_Groups->Add(1,L"Group 1"); var_Group->PutVisible(VARIANT_TRUE); var_Group->PutEventBackColor(RGB(128,128,128)); var_Group->PutTitle(L"1'st Group"); EXSCHEDULELib::IGroupPtr var_Group1 = var_Groups->Add(2,L"Group 2"); var_Group1->PutVisible(VARIANT_TRUE); var_Group1->PutEventBackColor(RGB(255,0,0)); var_Group1->PutTitle(L"2'nd Group"); spSchedule1->PutDefaultEventLongLabel(L"<%=%256%><br>Group's Caption: <b><%=%262%></b><br>Group's Title: <b><%=%263%></b>"); spSchedule1->PutDefaultEventShortLabel(spSchedule1->GetDefaultEventLongLabel()); EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents(); var_Events->Add(COleDateTime(2012,5,24,10,00,00).operator DATE(),COleDateTime(2012,5,24,12,00,00).operator DATE())->PutGroupID(1); var_Events->Add(COleDateTime(2012,5,24,10,45,00).operator DATE(),COleDateTime(2012,5,24,12,30,00).operator DATE())->PutGroupID(2); var_Events->Add(COleDateTime(2012,5,24,12,30,00).operator DATE(),COleDateTime(2012,5,24,14,30,00).operator DATE())->PutGroupID(1); spSchedule1->EndUpdate(); |
27 |
Is it possible to hide the grid lines in the calendar panel
|
26 |
How can I control the number of months displayed on the calendar pane
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar(); var_Calendar->PutMaxMonthX(2); var_Calendar->PutMaxMonthY(2); |
25 |
I'm currently evaluating your eXSchedule product and i'm trying to have the header display the month according to local settings. How can I do that (Method 2)
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar(); var_Calendar->PutFirstWeekDay(EXSCHEDULELib::exMonday); var_Calendar->PutMonthNames(L"J-A F-E M-A A-P M-A J-U J-L A-U S-P O-C N-V D-C"); var_Calendar->PutWeekDays(L"Du Lu Ma Mi Jo Vi Si"); var_Calendar->PutTodayCaption(L"A z i"); |
24 |
I'm currently evaluating your eXSchedule product and i'm trying to have the header display the month according to local settings. How can I do that (Method 1)
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar(); var_Calendar->PutFirstWeekDay(var_Calendar->GetLocFirstWeekDay()); var_Calendar->PutMonthNames(var_Calendar->GetLocMonthNames()); var_Calendar->PutWeekDays(var_Calendar->GetLocWeekDays()); var_Calendar->PutAMPM(var_Calendar->GetLocAMPM()); |
23 |
How can I show the events grouped
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->BeginUpdate(); spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE()); spSchedule1->PutDisplayGroupingButton(VARIANT_TRUE); spSchedule1->PutShowGroupingEvents(VARIANT_TRUE); EXSCHEDULELib::IGroupsPtr var_Groups = spSchedule1->GetGroups(); EXSCHEDULELib::IGroupPtr var_Group = var_Groups->Add(1,L"Group 1"); var_Group->PutVisible(VARIANT_TRUE); var_Group->PutEventBackColor(RGB(128,128,128)); var_Group->PutHeaderBackColor(var_Group->GetEventBackColor()); EXSCHEDULELib::IGroupPtr var_Group1 = var_Groups->Add(2,L"Group 2"); var_Group1->PutVisible(VARIANT_TRUE); var_Group1->PutEventBackColor(RGB(255,0,0)); var_Group1->PutHeaderBackColor(var_Group1->GetEventBackColor()); EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents(); var_Events->Add(COleDateTime(2012,5,24,10,00,00).operator DATE(),COleDateTime(2012,5,24,12,00,00).operator DATE())->PutGroupID(1); var_Events->Add(COleDateTime(2012,5,24,10,45,00).operator DATE(),COleDateTime(2012,5,24,12,30,00).operator DATE())->PutGroupID(2); var_Events->Add(COleDateTime(2012,5,24,11,30,00).operator DATE(),COleDateTime(2012,5,24,13,30,00).operator DATE())->PutGroupID(1); spSchedule1->EndUpdate(); |
22 |
How can I show 2 or more days in the scheduler
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->BeginUpdate(); EXSCHEDULELib::ICalendarPtr var_Calendar = spSchedule1->GetCalendar(); var_Calendar->PutSelection("0"); var_Calendar->PutSelectDate(COleDateTime(2012,5,24,0,00,00).operator DATE(),VARIANT_TRUE); var_Calendar->PutSelectDate(COleDateTime(2012,5,25,0,00,00).operator DATE(),VARIANT_TRUE); spSchedule1->EndUpdate(); |
21 |
Is it possible to change the first week day
|
20 |
How can I define the new starting / ending points of the day
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->PutDayStartTime(L"07:30"); spSchedule1->PutDayEndTime(L"12:45"); |
19 |
Is it possible to change the label to be displayed when user moves the events
|
18 |
How can I change the default tooltip when adding new events
|
17 |
How can I change the default label when adding new events
|
16 |
How can I change the default label when adding new events
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->BeginUpdate(); spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE()); spSchedule1->PutDefaultEventLongLabel(L"Start: <%=%1%><br>End: <%=%2%>"); spSchedule1->PutDefaultEventShortLabel(spSchedule1->GetDefaultEventLongLabel()); EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents(); var_Events->Add(COleDateTime(2012,5,24,10,00,00).operator DATE(),COleDateTime(2012,5,24,12,00,00).operator DATE()); var_Events->Add(COleDateTime(2012,5,24,11,30,00).operator DATE(),COleDateTime(2012,5,24,13,30,00).operator DATE()); spSchedule1->EndUpdate(); |
15 |
How can I programatically add events to the control
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->BeginUpdate(); spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE()); EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents(); var_Events->Add(COleDateTime(2012,5,24,10,00,00).operator DATE(),COleDateTime(2012,5,24,12,00,00).operator DATE()); var_Events->Add(COleDateTime(2012,5,24,10,45,00).operator DATE(),COleDateTime(2012,5,24,12,30,00).operator DATE()); var_Events->Add(COleDateTime(2012,5,24,11,30,00).operator DATE(),COleDateTime(2012,5,24,13,30,00).operator DATE()); spSchedule1->EndUpdate(); |
14 |
How can I hide the status part of a specific event
|
13 |
Is it possible to change the status color for a specific event
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->BeginUpdate(); spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE()); EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents(); var_Events->Add(COleDateTime(2012,5,24,10,00,00).operator DATE(),COleDateTime(2012,5,24,12,00,00).operator DATE()); var_Events->Add(COleDateTime(2012,5,24,10,45,00).operator DATE(),COleDateTime(2012,5,24,12,30,00).operator DATE())->PutStatusColor(RGB(255,0,0)); var_Events->Add(COleDateTime(2012,5,24,11,30,00).operator DATE(),COleDateTime(2012,5,24,13,30,00).operator DATE()); spSchedule1->EndUpdate(); |
12 |
Is it possible to change the background color for a specific event
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->BeginUpdate(); spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE()); EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents(); var_Events->Add(COleDateTime(2012,5,24,10,00,00).operator DATE(),COleDateTime(2012,5,24,12,00,00).operator DATE()); var_Events->Add(COleDateTime(2012,5,24,10,45,00).operator DATE(),COleDateTime(2012,5,24,12,30,00).operator DATE())->PutBodyBackColor(RGB(255,0,0)); var_Events->Add(COleDateTime(2012,5,24,11,30,00).operator DATE(),COleDateTime(2012,5,24,13,30,00).operator DATE()); spSchedule1->EndUpdate(); |
11 |
Can I change the size of the status to be larger
|
10 |
I do not need a status, can I hide it
|
9 |
Is it possible to change the status's default background color
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->BeginUpdate(); spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE()); spSchedule1->PutStatusEventColor(RGB(255,0,0)); EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents(); var_Events->Add(COleDateTime(2012,5,24,10,00,00).operator DATE(),COleDateTime(2012,5,24,12,00,00).operator DATE()); var_Events->Add(COleDateTime(2012,5,24,10,45,00).operator DATE(),COleDateTime(2012,5,24,12,30,00).operator DATE()); var_Events->Add(COleDateTime(2012,5,24,11,30,00).operator DATE(),COleDateTime(2012,5,24,13,30,00).operator DATE()); spSchedule1->EndUpdate(); |
8 |
How can I change the visual appearance of the Events (Method 2)
|
7 |
How can I change the visual appearance of the Events (Method 1)
/* Copy and paste the following directives to your header file as it defines the namespace 'EXSCHEDULELib' for the library: 'ExSchedule 1.0 Control Library' #import <ExSchedule.dll> using namespace EXSCHEDULELib; */ EXSCHEDULELib::ISchedulePtr spSchedule1 = GetDlgItem(IDC_SCHEDULE1)->GetControlUnknown(); spSchedule1->BeginUpdate(); spSchedule1->GetVisualAppearance()->Add(1,"c:\\exontrol\\images\\normal.ebn"); spSchedule1->GetCalendar()->PutSelection(COleDateTime(2012,5,24,0,00,00).operator DATE()); spSchedule1->PutBodyEventBackColor(0x1000000); EXSCHEDULELib::IEventsPtr var_Events = spSchedule1->GetEvents(); var_Events->Add(COleDateTime(2012,5,24,10,00,00).operator DATE(),COleDateTime(2012,5,24,12,00,00).operator DATE()); var_Events->Add(COleDateTime(2012,5,24,10,45,00).operator DATE(),COleDateTime(2012,5,24,12,30,00).operator DATE()); var_Events->Add(COleDateTime(2012,5,24,11,30,00).operator DATE(),COleDateTime(2012,5,24,13,30,00).operator DATE()); spSchedule1->EndUpdate(); |
6 |
How can I show the scheduler panel only, so no Calendar panel is shown
|
5 |
May I display the calendar in the right side of the control
|
4 |
Is it possible to disable resizing the vertical splitter
|
3 |
How can I show the Calendar panel only
|
2 |
Is there an AutoHide option for the Calendar panel
|
1 |
How can I hide the Calendar panel
|